﻿using WebApiClientCore;

namespace BPM.Web.Shared;

/// <summary>
/// Blazor客户端HTTP请求Token拦截器
/// </summary>
public interface ITokenInterceptor
{
    /// <summary>
    /// 在HTTP请求发送前
    /// </summary>
    event EventHandler<ApiRequestContext?> BeforeSend;

    /// <summary>
    /// 在收到HTTP请求的响应后（包括它没有成功）。
    /// </summary>
    event EventHandler<ApiResponseContext?> AfterSend;

    Guid? Id { get; set; }
}
